<?php

return function ($class_admin, $oRes, $class_qiniu, $db2, $method, $pageParams, $queryParams, $sortParams, $oper_id, $formValue, $uploadFile) {
    $mConfig = array();
    $mConfig['name'] = 'ntuser_balance_log';
    $mConfig['title'] = '点数记录';
    $mConfig['id'] = 'id';
    $mConfig['upload'] = array('name' => 'yun_' . $mConfig['name']);
    $mConfig['sort'] = array('prop' => 'id', 'order' => 'descending');
    $mConfig['column'] = array();
    $mConfig['column'][] = array('prop' => $mConfig['id'], 'label' => 'ID', 'width' => 60);
    $mConfig['column'][] = array('prop' => 'created', 'label' => '操作时间', 'width' => 150, 'where' => 'between', 'search_type' => 'datetimerange');
    $mConfig['column'][] = array('prop' => 'username', 'label' => '用户名', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'balance_acctype', 'label' => '账户类型', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'title', 'label' => '操作名称', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'balance_before', 'label' => '充前点数', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'amount', 'label' => '操作点数', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $mConfig['column'][] = array('prop' => 'balance_after', 'label' => '充后点数', 'width' => 150, 'form' => 'input', 'type' => 'text', 'where' => 'like');
    $class_admin->table_crud($mConfig, $oRes, $class_qiniu, $db2, $method, $pageParams, $queryParams, $sortParams, $oper_id, $formValue, $uploadFile);
};
